package speed2010.andreza.vspeed.ontologies;


public class Relationship extends Property {

	private String sourceElement;
	private String targetElement;
	private int minCardinality;
	private int maxCardinality;
	
	public Relationship(String name, String source, String target, int min, int max)
	{
		super(name);
		this.sourceElement = source;
		this.targetElement = target;
		this.minCardinality = min;
		this.maxCardinality = max;
	}

	public String getSourceElement() {
		return sourceElement;
	}

	public void setSourceElement(String sourceElement) {
		this.sourceElement = sourceElement;
	}

	public String getTargetElement() {
		return targetElement;
	}

	public void setTargetElement(String targetElement) {
		this.targetElement = targetElement;
	}

	public int getMinCardinality() {
		return minCardinality;
	}

	public void setMinCardinality(int minCardinality) {
		this.minCardinality = minCardinality;
	}

	public int getMaxCardinality() {
		return maxCardinality;
	}

	public void setMaxCardinality(int maxCardinality) {
		this.maxCardinality = maxCardinality;
	}
	
}
